<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="css/moban.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="css/widget.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="./superAdmin/css/addbtn.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript">
function showMsg() {
	var msg = '${message}';
	if(msg!=null&&msg!=""){
		alert(msg);
	}
}
</script>
</head>

<body onload="showMsg()">
<div style="background-color:#2E5E79;width:100%;height:50px;position:fixed;top:0;left:0;"></div>
<div id="package">
	<div id="hel">
		<div id="title">
    		<span><img src="./managementOfMember/images/home.png" /> &nbsp;阶段列表</span>
    	</div>
    </div>
	<div id="content">
    	<table class="tab">
    		<tr>
    			<th width="10%" height="25px">序号</th>
    			<th width="30%">所处阶段</th>
    			<th width="40%">阶段名称</th>
    			<th width="20%">操作</th>
    		</tr>
        	<s:iterator value="#session.stages" var="stage" status="item">
				<s:if test="#stage.id == 0">
					<tr style="height:25px;">
						<td><s:property value="%{#item.getIndex()}"/></td>
						<td width="30%">完成阶段 </td>
						<td width="30%">${stage.name}</td>
						<td width="30%"><a href="showEditStage.action?stageId=${stage.id}&stageName=${stage.name}"><input type="submit" name="submit" class="className" style="margin-top:-3px;"value=" 修改 " /></a></td>
					</tr>
				</s:if>
				<s:elseif test="#stage.id > 0">
					<tr style="height:25px;">
						<td><s:property value="%{#item.getIndex()}"/></td>
						<td>第${stage.id}阶段 </td>
						<td>${stage.name}</td>
						<td><a href="showEditStage.action?stageId=${stage.id}&stageName=${stage.name}"><input type="submit" name="submit" class="className" style="margin-top:-3px;"value=" 修改" /></a></td>
					</tr>
				</s:elseif>
			</s:iterator>
        </table>
    </div>
</div>
</body>
</html>